<?php

namespace App\Models\Charge;

use App\Models\Model;

class Charge extends Model
{
    protected $table = 'akbus_charge';

    protected $fillable = [
        'line',
        'card_num',
        'login_name',
        'serials_num',
        'VIN_num',
        'license_plate_num',
        'user_num',
        'member_num',
        'member_dept',
        'department',
        'charge_type',
        'order_created_at',
        'order_status',
        'pay_type',
        'charging_pile_num',
        'charging_station',
        'trading_power',
        'trading_amt',
        'act_trading_amt',
        'act_service_fee',
        'power_fee',
        'service_fee',
        'discounted_amt',
        'deduction_amt',
        'charging_start_at',
        'charging_end_at',
        'is_invoiced',
    ];

    /**
     * 拼接车牌号字符
     *
     * @param  string  $value
     *
     * @return string
     */
    public function getLicensePlateNumAttribute($value)
    {
        return '陕G'.$value;
    }
}
